package com.supercube.wechat.service.impl;

import com.supercube.wechat.dao.ShopsDao;
import com.supercube.wechat.domain.ShopsDO;
import com.supercube.wechat.service.ShopsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 门店服务层实现
 *
 * @author djzhao
 * @date 19/10/20 23:21
 * @email djzhao627@gmail.com
 */
@Service
public class ShopsServiceImpl implements ShopsService {

    @Autowired
    private ShopsDao shopsMapper;

    @Override
    public List<ShopsDO> list() {
        return shopsMapper.list();
    }

    @Override
    public int save(ShopsDO slideImageDO) {
        return shopsMapper.save(slideImageDO);
    }

    @Override
    public int update(ShopsDO slideImageDO) {
        return shopsMapper.update(slideImageDO);
    }

    @Override
    public int remove(int id) {
        return shopsMapper.remove(id);
    }
}
